home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dlamrg.z / dlamrg
Encoding:
Text File  |  2002-10-03  |  3.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. DDDDLLLLAAAAMMMMRRRRGGGG((((3333SSSS))))                                                          DDDDLLLLAAAAMMMMRRRRGGGG((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DLAMRG - will create a permutation list which will merge the elements of
  10.      A (which is composed of two independently sorted sets) into a single set
  11.      which is sorted in ascending order
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      SUBROUTINE DLAMRG( N1, N2, A, DTRD1, DTRD2, INDEX )
  15.  
  16.          INTEGER        DTRD1, DTRD2, N1, N2
  17.  
  18.          INTEGER        INDEX( * )
  19.  
  20.          DOUBLE         PRECISION A( * )
  21.  
  22. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  23.      These routines are part of the SCSL Scientific Library and can be loaded
  24.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  25.      directs the linker to use the multi-processor version of the library.
  26.  
  27.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  28.      4 bytes (32 bits). Another version of SCSL is available in which integers
  29.      are 8 bytes (64 bits).  This version allows the user access to larger
  30.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  31.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  32.      only one of the two versions; 4-byte integer and 8-byte integer library
  33.      calls cannot be mixed.
  34.  
  35. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  36.      DLAMRG will create a permutation list which will merge the elements of A
  37.      (which is composed of two independently sorted sets) into a single set
  38.      which is sorted in ascending order.
  39.  
  40. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  41.      N1     (input) INTEGER
  42.             N2     (input) INTEGER These arguements contain the respective
  43.             lengths of the two sorted lists to be merged.
  44.  
  45.      A      (input) DOUBLE PRECISION array, dimension (N1+N2)
  46.             The first N1 elements of A contain a list of numbers which are
  47.             sorted in either ascending or descending order.  Likewise for the
  48.             final N2 elements.
  49.  
  50.      DTRD1  (input) INTEGER
  51.             DTRD2  (input) INTEGER These are the strides to be taken through
  52.             the array A.  Allowable strides are 1 and -1.  They indicate
  53.             whether a subset of A is sorted in ascending (DTRDx = 1) or
  54.             descending (DTRDx = -1) order.
  55.  
  56.      INDEX  (output) INTEGER array, dimension (N1+N2)
  57.             On exit this array will contain a permutation such that if B( I )
  58.             = A( INDEX( I ) ) for I=1,N1+N2, then B will be sorted in
  59.             ascending order.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDLLLLAAAAMMMMRRRRGGGG((((3333SSSS))))                                                          DDDDLLLLAAAAMMMMRRRRGGGG((((3333SSSS))))
  71.  
  72.  
  73.  
  74. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  75.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  76.  
  77.      This man page is available only online.
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.